<?php 
$this->load->helper('form');
$options = array();
foreach ($branchlist as $value)
	$options[$value['branch_id']] = $value['name'];

echo form_dropdown('branch-list', $options, $branchlist,
 'id="branch-list" onchange="loadVersions($F(\'branch-list\'));" onFocus="loadVersions($F(\'branch-list\'));"  ').' ';
?>
